<template>
	<view>
	
		<u-navbar back-text="返回" title="公告"></u-navbar>
		
	
		
		
		<view class="cu-list menu sm-border card-menu shadow-lg margin-top-xl">
			
			<view class="cu-item arrow" v-for="(item,index) in notice" @tap="goNotice" :data-id="item.id">
				<view class="content">
					
					<text class="">{{item.title}}</text>
				</view>
			</view>
			</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				notice:[]
			}
		},
		onLoad() {
			this.getNotice()
		},
		methods: {
			gobak(){
				uni.navigateBack({
					
				})
			},
			getNotice(){
				const _this = this;
				_this.$apiResquest({
					url: 'cms/notice',
					method: 'GET',
					query:{id:_this.id}
				}).then(function(res) {
					
					_this.notice = res.data
				
				})
			},
			goNotice(e){
				
				let id = e.currentTarget.dataset.id
				uni.navigateTo({
					url:'../notice/notice?id='+id
				})
			},
		}
	}
</script>

<style>
		page{
			background-color: #F7F8FA;
			
		}
		  .fixed-back{
		  	    position: absolute;
		  	        top: 54px;
		  	        left: 9px;
		  	        z-index: 9999;
		  	        width: 50rpx;
		  	        height: 50rpx;
		  	        background: #fff;
		  	        border-radius: 100%;
		  }
</style>
